<template>
  <div class="main1">
    <!-- <el-button-group>
      <el-button
        type="success"
        v-for="item in btn"
        :plain="item.plain ? true : false"
        >{{ item["name"] }}</el-button
        @click="changeTable(item.type)"
      >
    </el-button-group> -->
    <div class="table">
      <rs-vue-table :tableData="tableData" :headerData="headerData" />
    </div>
  </div>
</template>

<script>
import RsVueTable from "../../../components/rs-Vue-Table/rsVueTable.vue";
export default {
  name: "ordering",
  data() {
    return {
      btn: [
        {
          name: "未处理订单",
          plain: false,
          type: "handle",
        },
        {
          name: "已处理订单",
          plain: true,
          type: "",
        },
      ],
      tableData: [
        {
          date: "2016-05-03",
          name: "王小虎",
          property: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-02",
          name: "张",
          property: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "李",
          property: "上海市普陀区金沙江路 1518 弄",
        },
      ],
      headerData: [
        {
          prop: "name",
          lable: "商品名字",
          width: "180",
        },
        {
          prop: "property",
          lable: "商品分类",
          width: "180",
        },
        {
          prop: "num",
          lable: "商品数量",
          width: "100",
        },

        {
          prop: "price",
          lable: "商品价格",
          width: "100",
        },
        {
          prop: "date",
          lable: "商品时间",
          width: "180",
        },
      ],
    };
  },
  components: {
    RsVueTable,
  },
};
</script>

<style scoped lang="less">
.main1 {
  width: 80%;
  margin: 0 auto;
  .el-button {
    margin: 0;
    border-radius: 0%;
  }
}
</style>
